package com.hlbspringcloud.signature.annotation;

import java.lang.annotation.*;

/**
 * @Author huanglibin
 * @Project signature
 * @Description 指定哪些接口或哪些实体需要签名
 * @Date 2020-12-30-16-02-33
 * @Version 1.0
 */
@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Signature {
    /**
     * 按照order值排序
     */
    String ORDER_SORT = "ORDER_SORT";
    /**
     * 字典序排序
     */
    String ALPHA_SORT = "ALPHA_SORT";

    /**
     * 允许重复请求
     * @return
     */
    boolean resubmit() default true;
    String sort() default Signature.ALPHA_SORT;
}
